package com.tledu.spring06.spring01.service;

import com.tledu.spring06.spring01.dao.UserDao;
import lombok.Setter;

/**
 * @author Antg
 * @date 2021/8/522:47
 */
public class UserServiceImpl9 implements UserService {
    @Setter
    private UserDao userDao;

    public UserServiceImpl9() {
        System.out.println("懒加载");
    }

    @Override
    public void testService() {
        System.out.println("测试迟加载的bean执行了");
        userDao.daoTest();
    }
}
